package com.imooc.demo.dao;

import com.imooc.demo.entity.UserAddressinfo;
import com.imooc.demo.entity.UserInfo;

import java.util.List;

public interface UserInfoDao {
    List<UserAddressinfo> getUserInfoByOpenid2(String buyerOpenid);
    UserInfo getUserInfoByOpenid1(String buyerOpenid);

    boolean insertUserInfo(UserInfo userInfo);
    boolean updateUserInfo(UserInfo userInfo);
    int updateUserInfo(String buyerOpenid, String usesrHeadurl, String userNickname, String userSex, String userCountry,
                   String userProvince, String userCity);
    //int initUser(UserInfo userInfo);

    UserInfo getUserInfo(String buyerOpenid);

    ///////////插入联系方式
    boolean insertPhone(UserInfo userInfo);

   /* int updateUserAddress(UserAddressinfo userAddressinfo);
    int removeUserAddress(Integer addressId);*/
    /**
     * 插入种类信息
     *
     * @return
     */
    /*int insertUserAddressinfo(UserAddressinfo userAddressinfo);
    UserAddressinfo getAddressinfoById(int addressId);*/

}
